import request from '@/utils/request'
import { officeApiUrl, technicalApiUrl } from '../config'


/**
 * 会议统计
 * @returns 
 */
export function getmeetingTotal(data) {
    return request({
        url: officeApiUrl + '/meeting/count',
        method: 'post',
        data
    })
}

/**
 * 获取列表数据
 * @data 
 */
export function getProgramMeetList(data) {
    return request({
        url: technicalApiUrl + '/program-meet/list',
        method: 'post',
        data
    })
}

/**
 * 获取列表统计数据
 * @data 
 */
export function getProgramMeetTotal(data) {
    return request({
        url: technicalApiUrl + '/program-meet/total/list',
        method: 'post',
        data
    })
}

/**
 * 查看
 * @id 
 */
export function getProgramMeetDetail(id) {
    return request({
        url: technicalApiUrl + '/program-meet/' + id,
        method: 'get',
    })
}

/**
 * 创建
 * @data 
 */
export function programMeetAdd(data) {
    return request({
        url: technicalApiUrl + '/program-meet/save',
        method: 'post',
        data
    })
}

/**
 * 修改
 * @data 
 */
export function programMeetUpdate(data) {
    return request({
        url: technicalApiUrl + '/program-meet/update',
        method: 'post',
        data
    })
}

/**
 * 删除
 * @id 
 */
export function programMeetDel(id) {
    return request({
        url: technicalApiUrl + '/program-meet/' + id,
        method: 'post'
    })
}

/**
 * 待办中查看
 * @id 
 */
export function getProgramMeetOptionDetail(id) {
    return request({
        url: technicalApiUrl + '/program-meet/option/' + id,
        method: 'get',
    })
}

/**
 * 待办中修改
 * @id 
 */
export function programOptionUpdate(data) {
    return request({
        url: technicalApiUrl + '/program-meet/option/update',
        method: 'post',
        data
    })
}

/**
 * 通过项目id查询项目总工
 * @id 
 */
export function getZgData(params) {
    return request({
        url: technicalApiUrl + '/program-meet/project',
        method: 'get',
        params
    })
}

/**
 * 打印
 * @id 
 */
export function print(params) {
    return request({
        url: technicalApiUrl + '/program-meet/plans/print',
        method: 'get',
        params
    })
}